﻿using SIG.Resources.Admin;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SIG.InputModel.Admin.Ads
{
    public class FileIM
    {
        public int Id { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Title")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Title { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "FileURL")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string FileURL { get; set; }

        //[Display(ResourceType = typeof(Labels), Name = "FileSize")]       
        //public int FileSize { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Importance")]
        [RegularExpression(@"^-?\d*$", ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "InvalidFormat")]
        public int Importance { get; set; }
       
        [Display(ResourceType = typeof(Labels), Name = "Active")]
        public bool Active { get; set; }
        
      
    }
}
